class Category < ActiveRecord::Base
  acts_as_nested_set
  include NestedSetList

  def  self.root_nodes
    find(:all, :conditions => 'parent_id IS NULL')
  end
  
end
